#include "stdafx.h"
#include "Boundaries.h"
Boundaries::Boundaries() : m_dlowerBound(0), m_dupperBound(0)
{
}
Boundaries::Boundaries(const double &lower, const double &upper): 
m_dlowerBound(lower), m_dupperBound(upper)
{
}
Boundaries::Boundaries(const Boundaries &rhs)
{
	check_assign(rhs);
}
Boundaries& Boundaries::operator=(const Boundaries &rhs)
{
		check_assign(rhs);
		return *this;
}
Boundaries::~Boundaries()
{
}
void 
Boundaries::upperBound(const double &upper)
{
	m_dupperBound = upper;
}
const double&
Boundaries::upperBound() const
{
	return m_dupperBound;
}
void
Boundaries::lowerBound(const double &lower)
{
	m_dlowerBound = lower;
}
const double&
Boundaries::lowerBound() const
{
	return m_dlowerBound;
}
Boundaries* 
Boundaries::clone() const
{
	return new Boundaries(*this);
}
void
Boundaries::check_assign(const Boundaries& rhs)
{
	if ( this != &rhs )
	{
		m_dlowerBound = rhs.m_dlowerBound;
		m_dupperBound = rhs.m_dupperBound;
	}
}